package org.carabiner.infinitest;

import java.awt.Color;
import java.io.File;

public class InfinitestSettings
{
  public static final Color PASSING_COLOR = new Color(0x359b35);
  public static final String FAILURES_DETECTED_MSG = "Infinitest - Failures Detected @ ";
  public static final String TESTS_PASSED_MSG = "Infinitest - All Tests Passed @ ";
  public static final String SCANNING_MSG = "Infinitest - Scanning for tests...";
  public static final String TESTS_PAUSED = "Infinitest - Tests Paused @ ";
  
  public static File getBuildPath()
  {
    File classes = new File("classes");
    if (classes.exists())
      return classes;
    return new File("classes.ant");
  }

  public static String getTestPattern()
  {
    return "^.*\\.Test.*";
  }

  public static int getRefreshRate()
  {
    return 2500;
  }

  public static long testTimeout()
  {
    return 10000;
  }

  public static int getMaxTestsPerProcess()
  {
    return 30;
  }
}
